#!/bin/bash

echo Optional arguments
echo -s --- Skip tests
echo -c --- Clean
echo -o --- Offline
echo ctrl c NOW to bail
sleep 1

	while getopts "osc" arg
	    do	case $arg in
		   ( o ) preargs="$preargs -o" ;;
		   ( s ) postargs="-Dmaven.test.skip=true" ;;
		   ( c ) preargs="$preargs clean" ;;
		esac
	done

mvn $preargs eclipse:clean eclipse:eclipse -Dwtpversion=1.5 package install -Dsurefire.useFile=false $postargs	
